package com.yx.mapper;

import com.yx.entity.SysPermission;
import com.yx.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * @Description: 权限
 * @Auther: zcz
 * @create 2020/4/16 11:51
 */
@Repository
@Mapper
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
    /**
     * 所有权限
     * @return
     */
    List<SysPermission> getAllPermissions();
    /**
     * 角色权限
     * @param roleId
     * @return
     */
    List<SysPermission> getRolePermissions(String roleId);
}